HlcDataSeries
HlcDataSeries 提供了Hlc图表和 Error 条图表的高-低-克闭合格式的通用数据源。请参见此数据源需要此 DataSeries 类型。任何2D 渲染序列类型, 诸如将 X-克闭合值变为 X- Y 。
继承自: DataSeries<T, T>
实现: IHlcDataSeries<T, T>, IDataSeries<T, T>, IDataSeries, ISuspendable, IHlcDataSeries
构造函数
public HlcDataSeries()
hlcDataSeries = HlcDataSeries()
初始化了 & ##HlcDataSeries+# 类的新实例 。
属性
public override DataSeriesType DataSeriesType { get; }
value = hlcDataSeries.DataSeriesType
获得此 & # # # #DataSeriesType # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
public override bool HasValues { get; }
value = hlcDataSeries.HasValues
获得一个显示此实例是否具有值的值 。
public IList<TY> HighValues { get; }
value = hlcDataSeries.HighValues
获得此%% DataSeries 的高值
public IList<TY> LowValues { get; }
value = hlcDataSeries.LowValues
Gets the Low Values of this DataSeries
StockSharp#Xaml#Charting#Model#DataSeries#IHlcDataSeries#HighValues
获得此%% DataSeries%%%%%%%%%s 的高值作为比较列表
StockSharp#Xaml#Charting#Model#DataSeries#IHlcDataSeries#LowValues
获得此%% DataSeries 的低值作为 IComparabable 列表
public override IRange YRange { get; }
value = hlcDataSeries.YRange
获得计算 YRange, 即IRang 包接 YMIN 和 YMax 属性
方法
public void Append(IEnumerable<TX> x, IEnumerable<TY> y, IEnumerable<TY> high, IEnumerable<TY> low)
hlcDataSeries.Append(x, y, high, low)
将一个开放、高、低、近点列表添加到系列中
- x
- X 值列表
- y
- Y 值列表
- high
- 高值列表
- low
- 低值列表
public void Append(TX x, TY y, TY high, TY low)
hlcDataSeries.Append(x, y, high, low)
将一个开放、 高、 低、 相近点附加到系列中
- x
- X 值
- y
- Y 值
- high
- 高值
- low
- 低值
public override void Append(IEnumerable<TX> x, IEnumerable<TY>[] yValues)
hlcDataSeries.Append(x, yValues)
附加 X 列表, Y 指向序列
- x
- X 点列表
- yValues
- Y分列表( 取决于系列类型)
public override void Append(TX x, TY[] yValues)
hlcDataSeries.Append(x, yValues)
附加一个 X, Y 指向序列
- x
- X 值
- yValues
- Y 值( 取决于系列类型)
protected override void ClearColumns()
hlcDataSeries.ClearColumns()
当在某一类中被覆盖时, 清除数据序列中的所有列
public override IDataSeries<TX, TY> Clone()
result = hlcDataSeries.Clone()
Creates a deep copy of a DataSeries
public override TY GetYMaxAt(int index, TY existingYMax)
result = hlcDataSeries.GetYMaxAt(index, existingYMax)
当在衍生类中被覆盖时,获得最大值(existingYMax,currentMax),其中currentMax是指定索引中的最大值
- index
- 基础数据集的索引
- existingYMax
- 现有上限
返回值: 新的YMax,即Min(existingYMax,currentMax).
public override TY GetYMinAt(int index, TY existingYMin)
result = hlcDataSeries.GetYMinAt(index, existingYMin)
当在衍生类中被覆盖时, 可获得 Min(%% existingYMin+%,% currentMin+%), 其中的% currentMin+%% 是指定索引中最小的
- index
- 基础数据集的索引
- existingYMin
- 现有最低限额
返回值: 新的YMIN,即Min(existingYMin,currentMin)), 即:
public void Insert(int index, TX x, TY y, TY high, TY low)
hlcDataSeries.Insert(index, x, y, high, low)
在指定的索引上插入一个打开、 高、 低、 关闭点
- index
- 插入的索引
- x
- X 值
- y
- Y 值
- high
- 高值
- low
- 低值
public void InsertRange(int startIndex, IEnumerable<TX> x, IEnumerable<TY> y, IEnumerable<TY> high, IEnumerable<TY> low)
hlcDataSeries.InsertRange(startIndex, x, y, high, low)
在指定的索引上插入一个打开、 高、 低、 关闭点的列表
- startIndex
- 插入的索引
- x
- X 值列表
- y
- Y 数值列表
- high
- 高值列表
- low
- 低值列表
public override void RemoveAt(int index)
hlcDataSeries.RemoveAt(index)
删除指定索引中的 X, Y 值
- index
- 要删除的索引 :
public override void RemoveRange(int startIndex, int count)
hlcDataSeries.RemoveRange(startIndex, count)
删除从指定的索引开始的点范围
- startIndex
- 开始删除元素范围的索引
- count
- 要删除的元素数量
public override HitTestInfo ToHitTestInfo(int index)
result = hlcDataSeries.ToHitTestInfo(index)
当在衍生类中被覆盖时, 返回包含指定索引数据点的 HitTestInfo 结构
- index
- The index to the DataSeries
返回值: HitTestInfo
public override IPointSeries ToPointSeries(ResamplingMode resamplingMode, IndexRange pointRange, int viewportWidth, bool isCategoryAxis, bool? dataIsDisplayedAs2D, IRange visibleXRange, IPointResamplerFactory factory, object pointSeriesArg)
result = hlcDataSeries.ToPointSeries(resamplingMode, pointRange, viewportWidth, isCategoryAxis, dataIsDisplayedAs2D, visibleXRange, factory, pointSeriesArg)
将默认的 YValues 转换为用于渲染 XY 序列的 IPointSeries
- resamplingMode
- The desired ResamplingMode
- pointRange
- 父数据集中的整数索引范围
- viewportWidth
- 视图的当前宽度
- isCategoryAxis
- 如果真实, 使用索引来组成被重印的 X 值, 否则使用 X 值本身
- dataIsDisplayedAs2D
- 如果数据是真实的, 那么数据会被显示为散射序列, 而不在点之间发生关系, e.g 。 而不是行序列 。
- visibleXRange
- 重作取样时的轴 VisibleRange
- factory
- The IPointResamplerFactory Instance
- pointSeriesArg
- 点序列的附加参数.
返回值: 用于制取 XY 系列的 IPointSeries 相机
public void Update(TX x, TY y, TY high, TY low)
hlcDataSeries.Update(x, y, high, low)
更新 X Value 指定的 Open、High、Low、Close 点。
- x
- 更新时的 X 值为按键
- y
- Y 值
- high
- 高值
- low
- 低值